﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="Ribbon.Documents.Manage.Controls.DeleteAllItems"
    Location="CommandUI.Ribbon"
    Description="Deletes all documents or items.">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
          Location="Ribbon.Documents.Manage.Controls._children">
          <Button
           Id="Ribbon.Documents.Manage.Controls.DeleteAllItemsButton"
           Sequence="60"
           Image16by16="/_layouts/images/ctor16.png"
           Command="DeleteAllItems"
           LabelText="Delete All Items"
           TemplateAlias="o2"
           ToolTipTitle="Delete All Items"
           ToolTipDescription="Delete all items in the list." />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
         Command="DeleteAllItems"
         CommandAction="javascript:DeleteAllItems();" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  <CustomAction
    Id="Ribbon.Documents.Manage.Script.DeleteAllItems"
    Location="ScriptLink"
    ScriptSrc="~SiteCollection/Style Library/DeleteAllItems/Core.js" />
</Elements>

